module.exports = {
    publicPath: './',
    productionSourceMap: false,
    devServer: {
        hot: true,
    },

    configureWebpack: {
        // 别名配置
        resolve: {
            alias: {
                'assets': '@/assets',
                'components': '@/components',
            }
        }
    },

    // css相关配置
    css: {
        extract: false, // 生产环境开启
        sourceMap: false,
        modules: false,
        loaderOptions: {
            postcss: {
                plugins: [
                    require('autoprefixer')
                ]
            },
            less: {
                javascriptEnabled: true //less 配置
            }
        }
    }
};
